package com.project.mapper;

import com.project.bean.ReplyBean;
import org.apache.ibatis.annotations.Insert;

public interface IReplyMapper {
    /**
     * 添加回贴
     * @param reply 回贴对象
     */
    @Insert("INSERT INTO t_reply(r_content,r_date,fk_userId,fk_primaryId)" +
            " values(#{content},#{createDate},#{user.id},#{primary.id})")
    public void add(ReplyBean reply);
}
